<?php
$title=$_POST['title'];
$content=$_POST['content'];
$con=mysqli_connect('10.2.30.4','root','root','curd');
if(!$con){
    echo json_encode(['msg'=>'no']);
    die('连接失败');
}
mysqli_set_charset($con,'utf8');
  $sql="insert into boke(title,content) values('$title','$content')";

$res = mysqli_query($con,$sql);
if($res){
    echo json_encode(['msg'=>'ok']);
}
